package edu.sctu.wulixia.month4and5.day20150504;

/**
 * Created by user05 on 2015/5/4.
 */
public class DayClient {
    public static void main(String[] args) {

        TestOne testone1 = new TestOne( "张三", 20, 180 );
        TestOne testone2 = new TestOne("王五", 22, 175);
        TestOne testone3 = new TestOne("赵六",23, 180);

        TestOne[] testonen = {testone1 , testone2 , testone3 };

        printArrey(testonen);
    }

    private static void printArrey(TestOne[] testonen) {
        for(int i  = 0 ; i < testonen.length; i ++){
            System.out.println(testonen[i].name);
            System.out.println(testonen[i].age);
            System.out.println(testonen[i].height);

        }
    }
}

